package com.git.bds.mr.doctor.convert;

import com.git.bds.mr.doctor.model.domain.Doctor;
import com.git.bds.mr.doctor.model.vo.DoctorInfoVO;
import com.git.bds.mr.records.model.domain.Records;
import com.git.bds.mr.records.model.dto.RecordDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 成大事
 * @since 2022/9/26 19:26
 */
@Mapper
public interface DoctorConvert {

    DoctorConvert INSTANCE = Mappers.getMapper(DoctorConvert.class);

    /**
     * 给vo医生
     *
     * @param doctor 医生
     * @return {@link DoctorInfoVO}
     */
    DoctorInfoVO toDoctorVO(Doctor doctor);

    /**
     * 记录数据到
     *
     * @param records 记录
     * @return {@link RecordDTO}
     */
    RecordDTO toRecordDTO(Records records);
}
